package com.ftg.learn.bus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 菜单表
 * </p>
 *
 * @author lalala
 * @since 2022-03-07
 */
@TableName("sys_menu")
@ApiModel(value = "Menu对象", description = "菜单表")
public class Menu implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("菜单表id")
    @TableId(value = "mid", type = IdType.AUTO)
    private Long mid;

    @ApiModelProperty("菜单名称")
    private String title;

    @ApiModelProperty("菜单URL")
    private String href;

    @ApiModelProperty("父级菜单ID")
    private Long parentId;

    @ApiModelProperty("是否删除(0为存在,1为已删除)")
    private Integer status;

    @ApiModelProperty("是否是叶子节点")
    private Integer isleaf;

    public Integer getIsleaf() {
        return isleaf;
    }

    public void setIsleaf(Integer isleaf) {
        this.isleaf = isleaf;
    }

    public Long getMid() {
        return mid;
    }

    public void setMid(Long mid) {
        this.mid = mid;
    }
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
    public String getHref() {
        return href;
    }

    public void setHref(String href) {
        this.href = href;
    }
    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Menu{" +
            "mid=" + mid +
            ", title=" + title +
            ", href=" + href +
            ", parentId=" + parentId +
            ", status=" + status +
            ", isleaf=" + isleaf +
        "}";
    }
}
